Integrand size = 33, antiderivative size = 117 \[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {4132, 3856, 2719, 4130, 2720} \[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3856
Rule 4130
Rule 4132
Rubi steps \begin{align*} \text {integral}& = \frac {B \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx}{b}+\int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx \\ & = \frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac {(A+3 C) \int \sqrt {b \sec (c+d x)} \, dx}{3 b^2}+\frac {B \int \sqrt {\cos (c+d x)} \, dx}{b \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \\ & = \frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac {\left ((A+3 C) \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^2} \\ & = \frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 1.72 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.22 \[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 \left (6 i B \operatorname {Hypergeometric2F1}\left (-\frac {1}{4},\frac {1}{2},\frac {3}{4},-e^{2 i (c+d x)}\right )-2 i (A+3 C) e^{i (c+d x)} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},-e^{2 i (c+d x)}\right )+\sqrt {1+e^{2 i (c+d x)}} (-3 i B+A \sin (c+d x))\right )}{3 b d \sqrt {1+e^{2 i (c+d x)}} \sqrt {b \sec (c+d x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.59 (sec) , antiderivative size = 608, normalized size of antiderivative = 5.20
method | result | size |
parts | \(-\frac {2 A \left (i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-\sin \left (d x +c \right )\right )}{3 d \sqrt {b \sec \left (d x +c \right )}\, b}+\frac {2 B \left (i \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )-i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \cos \left (d x +c \right )+2 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )-2 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )+\sin \left (d x +c \right )\right )}{b d \left (\cos \left (d x +c \right )+1\right ) \sqrt {b \sec \left (d x +c \right )}}-\frac {2 i C \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )}{d b \sqrt {b \sec \left (d x +c \right )}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\) | \(608\) |
default | \(\text {Expression too large to display}\) | \(783\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.37 \[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 \, A \sqrt {\frac {b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + \sqrt {2} {\left (-i \, A - 3 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (i \, A + 3 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 3 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{3 \, b^{2} d} \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]